import request from '@/utils/request'

// 查询审批表单详细
export function historyFromData(instanceId) {
  instanceId = encodeURI(instanceId);
  return request({
    url: '/historyFromData/ByInstanceId/' + encodeURIComponent(instanceId),
    method: 'get'
  })
}

// 获取某个节点所有审批意见，一般用于会签节点
export function listApproveOpinionListByTask(query) {
  return request({
    url: '/workflow/getApproveOpinionListByTask',
    method: 'get',
    params: query
  })
}

// 流程进度图查询信息
export function listProcessHistory(instanceId) {
  return request({
    url: '/workflow/getProcessScheduleDiagram',
    method: 'get',
    params: {
      "instanceId": instanceId
    }
  })
}
